package cn.bdqn.service;

import cn.bdqn.pojo.Role;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

public interface RoleService {
    /**
     * 查询所有角色信息
     * @return
     */

    public List<Role> findAllRoles();

    /**
     * 分页查询
     * @param pageNo
     * @param pageSize
     * @param roleName
     * @return
     */

    IPage<Role> selectList(Integer pageNo,Integer pageSize, String roleName);


    public int insert(Role role);

    public Role selectOne(Long roleId);

    public int update(Role role);
    public int delete(Long id);
}

